<!DOCTYPE html>
<!--[if lte IE 8 ]>
<html class="ie" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<!--
***************  *      *     *
      8          *    *       *
      8          *  *         *
      8          **           *
      8          *  *         *
      8          *    *       *
      8          *      *     *
      8          *        *   ***********    -----Theme By Kieran(http://go.kieran.top)
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<!--<![endif]-->

<head>
  <title>Ymmmsick</title>
  <!-- Meta data -->
    <meta http-equiv="Content-Type" content="text/html" charset="UTF-8" >
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="generator" content="Ymmmsick">
    <meta name="author" content="Ymmmsick">
    <meta name="description" content="Mr Xue的私人博客" />
    <meta name="keywords" content="" />

    <!-- Favicon, (keep icon in root folder) -->
    <link rel="Shortcut Icon" href="/img/favicon.ico" type="image/ico">

    <link rel="alternate" href="/atom.xml" title="Ymmmsick" type="application/atom+xml">
    <link rel="stylesheet" href="/css/all.css" media="screen" type="text/css">
	
    <link rel="stylesheet" href="/highlightjs/vs.css" type="text/css">
    
    

    <!-- Custom stylesheet, (add custom styles here, always load last) -->
    <!-- Load our stylesheet for IE8 -->
    <!--[if IE 8]>
    <link rel="stylesheet" type="text/css" href="/css/ie8.css" />
    <![endif]-->

    <!-- Google Webfonts (Monserrat 400/700, Open Sans 400/600) -->
    <link href='//fonts.useso.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
    <link href='//fonts.useso.com/css?family=Open+Sans:400,600' rel='stylesheet' type='text/css'>

    <!-- Load our fonts individually if IE8+, to avoid faux bold & italic rendering -->
    <!--[if IE]>
    <link href='http://fonts.useso.com/css?family=Montserrat:400' rel='stylesheet' type='text/css'>
    <link href='http://fonts.useso.com/css?family=Montserrat:700' rel='stylesheet' type='text/css'>
    <link href='http://fonts.useso.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'>
    <link href='http://fonts.useso.com/css?family=Open+Sans:600' rel='stylesheet' type='text/css'>
    <![endif]-->

    <!-- jQuery | Load our jQuery, with an alternative source fallback to a local version if request is unavailable -->
    <script src="/js/jquery-1.11.1.min.js"></script>
    <script>window.jQuery || document.write('<script src="js/jquery-1.11.1.min.js"><\/script>')</script>

    <!-- Load these in the <head> for quicker IE8+ load times -->
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="/js/html5shiv.min.js"></script>
    <script src="/js/respond.min.js"></script>
    <![endif]-->










  
  
  

  
  <style>.col-md-8.col-md-offset-2.opening-statement img{display:none;}</style>
</head>

<!--
<body class="home-template">
-->
<body id="index" class="lightnav animsition">

      <!-- ============================ Off-canvas navigation =========================== -->

    <div class="sb-slidebar sb-right sb-style-overlay sb-momentum-scrolling">
        <div class="sb-close" aria-label="Close Menu" aria-hidden="true">
            <img src="/img/close.png" alt="Close"/>
        </div>
        <!-- Lists in Slidebars -->
        <ul class="sb-menu">
            <li><a href="/" class="animsition-link" title="Home">Home</a></li>
            <li><a href="/archives" class="animsition-link" title="archive">archives</a></li>
            <!-- Dropdown Menu -->
			 
            <li>
                <a class="sb-toggle-submenu">Works<span class="sb-caret"></span></a>
                <ul class="sb-submenu">
                    
                        <li><a href="https://github.com/SuperKieran/TKL" target="_BLANK" class="animsition-link">TKL</a></li>
                    
                </ul>
            </li>
            
            
        	<li>
        		<a class="sb-toggle-submenu">Categories<span class="sb-caret"></span></a>
            	<ul class="sb-submenu">
				  	
				    <li><a href="/categories/Android/" class="animsition-link">Android<small>(3)</small></a></li>
				    
				    <li><a href="/categories/Films/" class="animsition-link">Films<small>(1)</small></a></li>
				    
				    <li><a href="/categories/Game/" class="animsition-link">Game<small>(1)</small></a></li>
				    
				    <li><a href="/categories/Git/" class="animsition-link">Git<small>(1)</small></a></li>
				    
				    <li><a href="/categories/Hexo/" class="animsition-link">Hexo<small>(2)</small></a></li>
				    
				    <li><a href="/categories/Life/" class="animsition-link">Life<small>(2)</small></a></li>
				    
				    <li><a href="/categories/Music-Share/" class="animsition-link">Music Share<small>(1)</small></a></li>
				    
				    <li><a href="/categories/MySql/" class="animsition-link">MySql<small>(1)</small></a></li>
				    
				    <li><a href="/categories/iOS/" class="animsition-link">iOS<small>(2)</small></a></li>
				    
				</ul>
        	</li>
			
            
            <li>
                <a class="sb-toggle-submenu">Links<span class="sb-caret"></span></a>
                <ul class="sb-submenu">
                    
                    <li><a href="http://www.cnblogs.com/wubingshenyin/" class="animsition-link">以前的博客</a></li>
                    
                    <li><a href="http://go.kieran.top/" class="animsition-link">kieran</a></li>
                    
                </ul>
            </li>
        </ul>
        <!-- Lists in Slidebars -->
        <ul class="sb-menu secondary">
            <li><a href="/relaxed.html" class="animsition-link" title="radio">Relaxed</a></li>
            <li><a href="/radio.html" class="animsition-link" title="radio">Music Radio</a></li>
            <li><a href="/about.html" class="animsition-link" title="about">About</a></li>
            <li><a href="/atom.xml" class="animsition-link" title="rss">RSS</a></li>
        </ul>
    </div>
    
    <!-- ============================ END Off-canvas navigation =========================== -->

    <!-- ============================ #sb-site Main Page Wrapper =========================== -->

    <div id="sb-site">
        <!-- #sb-site - All page content should be contained within this id, except the off-canvas navigation itself -->

        <!-- ============================ Header & Logo bar =========================== -->

        <div id="navigation" class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <!-- Nav logo -->
                    <div class="logo">
                        <a href="/" title="Logo" class="animsition-link">
                         <img src="/img/logo.png" alt="Logo" width="35px;"/> 
                        </a>
                    </div>
                    <!-- // Nav logo -->
                    <!-- Info-bar -->
                    <nav>
                        <ul class="nav">
                            <li><a href="/" class="animsition-link">Ymmmsick</a></li>
                            <li class="nolink"><span>Always </span>Creative.</li>
                            
                            <li><a href="https://github.com/" title="Github" target="_blank"><i class="icon-github"></i></a></li>
                            
                            
                            <li><a href="https://twitter.com/" title="Twitter" target="_blank"><i class="icon-twitter"></i></a></li>
                            
                            
                            <li><a href="https://www.facebook.com/" title="Facebook" target="_blank"><i class="icon-facebook"></i></a></li>
                            
                            
                            <li><a href="https://google.com/" title="Google-Plus" target="_blank"><i class="icon-google-plus"></i></a></li>
                            
                            
                            <li><a href="http://weibo.com/" title="Sina-Weibo" target="_blank"><i class="icon-sina-weibo"></i></a></li>
                            
                            <li class="nolink"><span>Welcome!</span></li>
                        </ul>
                    </nav>
                    <!--// Info-bar -->
                </div>
                <!-- // .container -->
                <div class="learnmore sb-toggle-right">More</div>
                <button type="button" class="navbar-toggle menu-icon sb-toggle-right" title="More">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar before"></span>
                <span class="icon-bar main"></span>
                <span class="icon-bar after"></span>
                </button>
            </div>
            <!-- // .navbar-inner -->
        </div>

        <!-- ============================ Header & Logo bar =========================== -->

        <!-- ============================ Hero Image =========================== -->

        <section id="hero" class="scrollme">
            <div class="container-fluid element-img" style="background: url(/img/1.jpg) no-repeat center center fixed;background-size: cover">
                <div class="row">
                    <div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2 vertical-align cover boost text-center">
                        <div class="center-me animateme" data-when="exit" data-from="0" data-to="0.6" data-opacity="0" data-translatey="100">
                            <div>
                            	
                                <h2>KEEP ON GOING <span>NEVER</span> GIVE UP.</h2>
                                <p></p>
				    			
                                <h2></h2>
                                <p>如果你不肯付出一时的努力去博取成功，那么你可能就要用一生的耐心去忍受失败。</p>
				    			

                            </div>
                        </div>
                    </div>
                    <!-- // .col-md-12 -->
                </div>
                <div class="herofade beige-dk"></div>
            </div>
        </section>

        <!-- Height spacing helper -->
        <div class="heightblock"></div>
        <!-- // End height spacing helper -->

        <!-- ============================ END Hero Image =========================== -->
      <!-- ============================ Content =========================== -->

<section id="intro">
    <div class="container">
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/2018/02/02/跑不过青春-跑不过老去/">跑不过青春,跑不过老去</a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2018-02-02T08:18:01.000Z" itemprop="datePublished">
          2018-02-02
      </time>
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p>
                      
                        
我觉得我已经早早的用光了我的快乐 
但是
却滑稽的成为了一个制造快乐的人
其实
我并不是那么的快乐
只是在坚持不肯让痛苦掠夺罢了
尽管有时候
我努力而虚伪的表现着自己的坚强与勇敢
但在时光车轮的前进中
我却看不到自己影子的移动
我承认
我是一个稚嫩而无能的人
我
跑不过青春
跑不过老去


                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/2018/02/02/跑不过青春-跑不过老去/">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/2016/11/18/DroidPlugin与VirturlApp学习/">DroidPlugin与VirturlApp学习</a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2016-11-18T06:36:38.000Z" itemprop="datePublished">
          2016-11-18
      </time>
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p>
                      
                        
                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/2016/11/18/DroidPlugin与VirturlApp学习/">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/2016/10/26/音乐分享-《笑忘书》/">音乐分享-《笑忘书》</a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2016-10-26T09:27:25.000Z" itemprop="datePublished">
          2016-10-26
      </time>
    
    
    | 
    <a href='/tags/笑忘书-音乐-分享/'>笑忘书,音乐,分享</a>
    
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p>
                      
                        

要背负个包袱
再跳落大峡谷
烦恼用个大网将你捕捉
还是你抛不开拘束
你昨夜发的梦
到这夜已告终
沉下去头上散落
雨点没有彩虹
你还在抱着记忆
就似块石头很重
得到同样快乐
彼此亦有沮丧
童话书从成长中
难免要学会失望
经过同样上落
彼此堕进灰网
沉溺烦扰磨折
何苦多讲
我快乐到孤独
我缺乏到满足
游戏就算愉快不会幸福
人大了开心都想哭
我每日要生活
我每日要斗苦
捱下去连上帝
亦也许没法搀扶
我前路有右与左
面对抉择难兼顾
得到同样
                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/2016/10/26/音乐分享-《笑忘书》/">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/2016/03/09/Fragment通信的那点事(Communicating with Fragments)/">Fragment通信的那点事(Communicating with Fragments)</a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2016-03-09T09:01:47.000Z" itemprop="datePublished">
          2016-03-09
      </time>
    
    
    | 
    <a href='/tags/Fragments通信-Fragment-communicating/'>Fragments通信,Fragment communicating</a>
    
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p>
                      
                        Fragment通信情况分为两种：
1.处于同一Activity中的Fragment通信，经典的例如Activity+ViewPager+Fragment
2.处于非同一Activity中的两个Fragment或一个Activity中的Fragment与另外的Activity通信
因为第二种较为简单，这里先说一说第二种个人解决方案，第二种直接采用receiver广播机制来通信（发送参数，更新界面等）
遇到第一种情况虽然也可以使用rece
                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/2016/03/09/Fragment通信的那点事(Communicating with Fragments)/">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/2016/03/04/如何创建一个没有启动图标的android应用/">如何创建一个没有启动图标的android应用</a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2016-03-04T08:08:20.000Z" itemprop="datePublished">
          2016-03-04
      </time>
    
    
    | 
    <a href='/tags/android-图标/'>android,图标</a>
    
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p>
                      
                        &lt;activity android:name=".MainActivity" android:label="@string/app_name"&gt;
&lt;intent-filter&gt;
    &lt;action android:name="android.intent.action.MAIN" /&gt;
    &lt;category android:name="android.intent.category.L
                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/2016/03/04/如何创建一个没有启动图标的android应用/">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/2016/02/24/mysql单表多timestamp报错-1293-Incorrect-table-definition-there-can-be-only-one-TIMESTAMP-column-with-C/">mysql单表多timestamp报错#1293 - Incorrect table definition; there can be only one TIMESTAMP column with C</a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2016-02-24T08:45:57.000Z" itemprop="datePublished">
          2016-02-24
      </time>
    
    
    | 
    <a href='/tags/mysql-1293/'>mysql,1293</a>
    
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p>
                      
                        今天在用SqlYog导入sql备份文件的时候又遇到了错误，而且不是往常修改配置文件的错误，点击打开错误文件，alway crashed！！！猜测应该是微软记事本太渣的原因，于是转到sqlyog安装目录，用submit打开错误文件，拉到最下面找到错误，根据提示定位到sql文件中的行数，原来是mysql单表多timestamp报错。
一个表中出现多个timestamp并设置其中一个为current_timestamp的时候经常会遇到

_#
                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/2016/02/24/mysql单表多timestamp报错-1293-Incorrect-table-definition-there-can-be-only-one-TIMESTAMP-column-with-C/">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/2016/02/23/android-drawable和mipmap的区别/">android drawable和mipmap的区别</a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2016-02-23T08:57:02.000Z" itemprop="datePublished">
          2016-02-23
      </time>
    
    
    | 
    <a href='/tags/android-drawable-mipmap/'>android,drawable,mipmap</a>
    
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p>
                      
                        以前被坑了，好多人都说新版本的sdk中图片资源放在mipmap中会有优化，官方原话是这样的：

drawable-/Directories for drawable resources, other than launcher icons, designed for various densities.
mipmap/Launcher icons reside in the mipmap/ folder rather than the 
                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/2016/02/23/android-drawable和mipmap的区别/">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/2015/08/10/为什么-iOS-开发中，控件一般为-weak-而不是-strong？/">为什么 iOS 开发中，控件一般为 weak 而不是 strong？</a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2015-08-10T15:42:38.000Z" itemprop="datePublished">
          2015-08-10
      </time>
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p>
                      
                        参考自：http://www.zhihu.com/question/29927614?sort=created
因为控件他爹( view.superview )已经揪着它的小辫了( strong reference )，你( viewController )眼瞅着( weak reference )就好了。
当然，如果你想在 view 从 superview 里面 remove 掉之后还继续持有的话，还是要用 strong 的( 你也揪
                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/2015/08/10/为什么-iOS-开发中，控件一般为-weak-而不是-strong？/">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/2015/07/30/如何评价《煎饼侠》？/">如何评价《煎饼侠》？</a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2015-07-30T02:54:23.000Z" itemprop="datePublished">
          2015-07-30
      </time>
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p>
                      
                        文章摘自知乎:http://www.zhihu.com/question/31085704/answer/55762805
当《爸爸去哪儿》、《奔跑吧兄弟》开启收费版综艺节目模式之后，冯小刚导演怒了。当郭敬明的《小时代》系列大赚特赚时，无论豆瓣时光评分多低，还是无法阻止票房攀升。当我们面对这样的话题时，总有一句话我们几乎无法反驳：如果你想挣傻子钱就别骂傻子傻。

几乎是怀着对于董成鹏的成见，我在一个多月前就做好了准备，忽略掉这一场粉丝的
                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/2015/07/30/如何评价《煎饼侠》？/">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/2015/07/28/转：-Xcode提示“expression-is-not-assignable”/">转： Xcode提示“expression is not assignable”</a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2015-07-28T14:46:54.000Z" itemprop="datePublished">
          2015-07-28
      </time>
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p>
                      
                        你的问题是：

self.view.frame.size.height = 100f;
这样写没法通过编译，编译器会报错"expression is not assignable"

原因是，这句话里面的几个点有两种不同的含义。self.view.frame是Objective-C语法，是读取view属性的frame属性，在Objective-C中使用点来访问属性只是一种语法糖，所以self.view.frame这句话会被转换成：

[
                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/2015/07/28/转：-Xcode提示“expression-is-not-assignable”/">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <nav class="pagination" role="pagination">
          
          <a class="pull-right" href="/page/2/">Older Posts →</a>
        </nav>
    </div>
</section>
<section id="statement">
    <div class="container text-center wow fadeInUp" data-wow-delay="0.5s">
        <div class="row">
            <p>人可以一天不吃饭，但是不能一天不学习。</p>
        </div>
    </div>
</section>
<!-- ============================ END Content =========================== -->

      
<!-- ============================ Footer =========================== -->

<footer>
    <div class="container">
            <div class="copy">
                <p>
                    &copy; 2014<script>new Date().getFullYear()>2010&&document.write("-"+new Date().getFullYear());</script>, Content By Ymmmsick. All Rights Reserved.
                </p>
                <p>Theme By <a href="//go.kieran.top" style="color: #767D84">Kieran</a></p>
            </div>
            <div class="social">
                <ul>
                    
                    <li><a href="https://github.com/" title="Github" target="_blank"><i class="icon-github"></i></a>&nbsp;</li>
                    
                    
                    <li><a href="https://twitter.com/" title="Twitter" target="_blank"><i class="icon-twitter"></i></a>&nbsp;</li>
                    
                    
                    <li><a href="https://www.facebook.com/" title="Facebook" target="_blank"><i class="icon-facebook"></i></a>&nbsp;</li>
                    
                    
                    <li><a href="https://google.com/" title="Google-Plus" target="_blank"><i class="icon-google-plus"></i></a>&nbsp;</li>
                    
                    
                    <li><a href="http://weibo.com/" title="Sina-Weibo" target="_blank"><i class="icon-sina-weibo"></i></a>&nbsp;</li>
                    
                </ul>
            </div>
            <div class="clearfix"> </div>
        </div>
</footer>

<!-- ============================ END Footer =========================== -->
      <!-- Load our scripts -->
        
<!-- Resizable 'on-demand' full-height hero -->
<script type="text/javascript">
    
    var resizeHero = function () {
        var hero = $(".cover,.heightblock"),
            window1 = $(window);
        hero.css({
            "height": window1.height()
        });
    };
    
    resizeHero();
    
    $(window).resize(function () {
        resizeHero();
    });
</script>
<script src="/js/plugins.min.js"></script><!-- Bootstrap core and concatenated plugins always load here -->
<script src="/js/jquery.flexslider-min.js"></script><!-- Flexslider plugin -->
<script src="/js/scripts.js"></script><!-- Theme scripts -->

<!-- Initiate flexslider plugin -->
<script type="text/javascript">
    $(document).ready(function($) {
      $('.flexslider').flexslider({
        animation: "fade",
        prevText: "",
        nextText: "",
        directionNav: true
      });
    });
</script>

</body>
</html>
